{% extends "base.html" %}

{%block title%}Profil pacjenta{%endblock%}

{% block content %}
	<div id="content">
		<h2>Profil pacjenta</h2>
		<table class="results">
			<tr>
				<th colspan="6">Dane pacjenta <i>{{profile.first_name}} {{profile.last_name}}</i></th>
			</tr>
			<tr>
				<td width="30%">ID:</td>
				<td>{{profile.id}}</td>
			</tr>
			<tr>
				<td>Imię i nazwisko:</td>
				<td>{{profile.first_name}} {{profile.last_name}}</td>
			</tr>
			<tr>
				<td>Adres:</td>
				<td>{{profile.street}}, {{profile.postal_code}} {{profile.city}}</td>
			</tr>
			<tr>
				<td>Telefon:</td>
				<td>{{profile.phone}}</td>
			</tr>
			<tr>
				<td>PESEL:</td>
				<td>{{profile.personal_id}}</td>
			</tr>
			<tr>
				<td>Data urodzenia:</td>
				<td>{{profile.birthday}}</td>
			</tr>
			<tr>
				<td>Płeć:</td>
				<td>{{profile.gender}}</td>
			</tr>
			<tr>
				<td>Stan cywilny:</td>
				<td>{{profile.marital_status}}</td>
			</tr>
			<tr>
				<td>Stan rodzinny:</td>
				<td>{{profile.family_status}}</td>
			</tr>
			<tr>
				<td>Miejsce pracy:</td>
				<td>{{profile.workplace}}</td>
			</tr>
			<tr>
				<td>Szkodliwość warunków pracy:</td>
				<td>{{profile.conditions}}</td>
			</tr>
			<tr>
				<td>Przebyte choroby:</td>
				<td>{{profile.medical_history}}</td>
			</tr>
			<tr>
				<td>Obciążenia rodzinne:</td>
				<td>{{profile.family_illness}}</td>
			</tr>
			<tr>
				<td>Uwagi:</td>
				<td>{{profile.comment}}</td>
			</tr>
			<tr>
				<td class="ta-c" colspan="6">
					<form>
						<button type="submit" formaction="javascript:history.back()" class="m-t m-b">Wstecz</button>
						<button type="submit" onclick="window.print ();" class="m-l m-t m-b">Drukuj</button>
						<button type="submit" formaction="{%url profile-remove profile.id%}" class="m-l m-t m-b">Usuń pacjenta</button>
						<button type="submit" formaction="{%url profile-edit profile.id%}" class="m-l m-t m-b">Edytuj pacjenta</button>
						<button type="submit" formaction="{%url visit-user profile.id%}" class="m-l m-t m-b">Wyświetl wizyty</button>
						<button type="submit" formaction="{%url visit-add profile.id%}" class="m-l m-t m-b">Nowa wizyta</button>
					</form>
				</td>
			</tr>
		</table>
		
	</div>
{% endblock %}
